package com.gec.hawaste.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 机构-废弃品
 * </p>
 *
 * @author gec
 * @since 2022-11-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysOfficeWaste implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 废弃品编号
     */
    private Long wasteId;

    /**
     * 机构编号
     */
    private Long officeId;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "UTC+8")
    private Date createDate;

    private String updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "UTC+8")
    private Date updateDate;

    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private String delFlag;


}
